gdk/wayland: Ensure to clean up stale touchpoint data on surface destroy
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 24 Apr 2020 21:11:00 +0000 (23:11 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 24 Apr 2020 21:11:00 +0000 (23:11 +0200)
commit41b7f03d552f6ddc45c6a3ee099ac132d05d6adb
treecd70748ac0b7aacc6c92b69181dc9b37725567af
parent67e1acd4d7933139e37dddb4e4f102c0ea6d1168
gdk/wayland: Ensure to clean up stale touchpoint data on surface destroy

If the wl_surface receiving touch events is destroyed, we will get no
wl_touch.up event to remove the touchpoint from our internal accounting.
Check for this, and drop touchpoints happening in surfaces that do
disappear during operation.
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkseat-wayland.h
gdk/wayland/gdksurface-wayland.c